import re

text = """
Squall's HP is now 9999.9999.9999.9999!
My IP is always 127.0.0.1 or 192.168.1.106.
The server works at IP address 202.123.56.234.
I say: 1.1000.1000.666...
Broadcast addr is 192.168.1.255.
"""

regexp_ip_digits = r'(\d|([1-9]\d)|(1\d{2})|(2[0-4]\d)|(25[0-5]))'
regexp_ip = fr'\D(({regexp_ip_digits}\.){{3}}{regexp_ip_digits})\D'
print(regexp_ip)

xmatch = re.finditer(regexp_ip, text)
if xmatch is not None:
    for x in xmatch:
        print(x)
        print(x[1])
else:
    print('Not match.')
